package com.ruoyi.repn.domain.params;

import javax.validation.constraints.NotBlank;

/**
 * @author cpf
 * @date 2024/1/28 16:09
 * @description  用户登录Params
 */
public class UserLoginParams {


    /**
     * 登录时获取的 code，可通过wx.login获取
     */
    @NotBlank(message = "登陆code不能为空")
    private String code;


    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 用户头像
     */
    private String avatarUrl;


    /**
     * 性别 0未知 1男性 2女性
     */
    private Integer gender;

    @Override
    public String toString() {
        return "UserLoginParams{" +
                "js_code='" + code + '\'' +
                ", nickName='" + nickName + '\'' +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", gender=" + gender +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }
}
